r_flag_sources = [
  'flag.c',
  'tags.c',
  'zones.c'
]

r_flag = library('r_flag', r_flag_sources,
  include_directories: [platform_inc],
  c_args: library_cflags,
  dependencies: [
    r_util_dep
  ],
  install: true,
  implicit_include_directories: false,
  soversion: r2_libversion
)

r_flag_dep = declare_dependency(link_with: r_flag,
                                include_directories: [platform_inc])

pkgconfig_mod.generate(r_flag,
  subdirs: 'libr',
  version: r2_version,
  name: 'r_flag',
  filebase: 'r_flag',
  requires: [
    'r_util'
  ],
  description: 'radare foundation libraries'
)
